package org.example4;

public class AppMain {
    public static void main(String[] args) {

        //通过无参构造构造代码
        GenericObject<Object, Object> genericObject = new GenericObject<>();

        System.out.println(genericObject.getKey().getClass());
        System.out.println(genericObject.getValue().getClass());

        System.out.println("------------------------------------------------");

        GenericObject<String, Long> genericObject1 = new GenericObject<>("keyName", 1234L);

        System.out.println(genericObject1.getKey().getClass());
        System.out.println(genericObject1.getValue().getClass());

    }
}
